package com.rjh.spring.test;

import com.rjh.spring.ioc.Person;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:springTest.xml")
public class SpringTestJUnit4 {

    @Autowired
    private Person person;

    @Test
    public void test1() throws Exception {
        person.sayHello();
    }
}
